package com.code.generator.code.impl.web;

import com.code.config.DataSourceInfo;
import com.code.generator.context.velocity.VelocityGeneratorContext;
import com.code.generator.code.impl.AbstractVelocityGenerator;

public class IndexGenerator extends AbstractVelocityGenerator {

    @Override
    protected String getTemplateName(VelocityGeneratorContext context) {
        return DataSourceInfo.DRIVER_CLASS.getValue() + "/index.vue.vm";
    }

    @Override
    protected String getPackageName(VelocityGeneratorContext context) {
        return "web";
    }

    @Override
    protected String getFileName(VelocityGeneratorContext context) {
        return context.get("entity").toString() + "Index.vue";
    }

}
